package demo2;

public class Card {
    @Override
    public String toString() {
        return suit + rank 
                ;
    }

    private String suit;//huase
    private int rank;//点数

    public Card(String suit, int rank) { //生成带两个参数的构造方法，用于初始化对象
        this.suit = suit;
        this.rank = rank;
    }

    public String getSuit() {
        return suit;
    }

    public void setSuit(String suit) {
        this.suit = suit;
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }
}
